#include "Pch.h"
#include "VertexArray.h"
#include "Renderer.h"
#include "Platform\OpenGL\OpenGLVertexArray.h"
namespace Engine
{
	VertexArray* VertexArray::Create()
	{
		switch (Renderer::GetAPI())
		{
		case RendererAPI::API::None:
			std::cout << "RendererAPI::None is currently not supported!" << std::endl;
			return nullptr;
		case RendererAPI::API::OpenGL:
			return new GLVertexArray();
		}
		std::cout << "UnknownAPI!" << std::endl;
		return nullptr;
	}
}